package com.jcz.entity;

import java.util.List;

public class Page {
	private Integer pageIndex;
	private Integer pageSize;
	private Integer pageCount;
	private Long count;
	private List<Auction> list;
	public List<Auction> getList() {
		return list;
	}

	public void setList(List<Auction> list) {
		this.list = list;
	}

	public Integer getPageIndex() {
		return pageIndex;
	}

	public void setPageIndex(Integer pageIndex) {
		this.pageIndex = pageIndex;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public Integer getPageCount() {
		return pageCount;
	}

	public void setPageCount(Integer pageCount) {
		this.pageCount = pageCount;
	}

	public Long getCount() {
		return count;
	}

	public void setCount(Long count) {
		this.count = count;

		this.setPageCount(Integer.valueOf((count % this.getPageSize() == 0 ? count
				/ this.getPageSize()
				: count / this.getPageSize() + 1)+""));
	}

}
